﻿using System;
using System.Windows;
using CommonLib;

namespace WordStat.Gui
{
    /// <summary>
    /// Interaction logic for AddNewArticleWindow.xaml
    /// </summary>
    public partial class AddNewArticleWindow : Window
    {
        public AddNewArticleWindow()
        {
            InitializeComponent();
        }

        public void SetData(WordStatArticle article)
        {
            Article = article;

            _mainGrid.DataContext = article;
        }

        public WordStatArticle Article { get; set; }

        private void _applyBtn_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;

            Close();
        }
    }
}
